#!/usr/bin/python3

while True:
	s = int (input ('What is your score? '))
	if s >= 90:
		print ('A')
	elif s >= 80:
		print ('B')
	elif s >= 70:
		print ('C')
	elif s >= 60:
		print ('D')
	else:
		print ('E')
